<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('categorys', 'CategoryController');
    $router->resource('goodss', 'GoodController');
    $router->resource('goods_like', 'GoodsLikeController');
    $router->resource('orders', 'OrderController');
    $router->resource('userss', 'UserController');
    $router->resource('configss', 'ConfigController');
    $router->resource('addresss', 'AddressController');
    $router->resource('coupons', 'CouponController');
    $router->resource('coupon_user', 'CouponUserController');

});
